package com.bckj.fastboot.iot.biz.config;

import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.bckj.fastboot.core.page.FastPaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MyBatisPlusConfig
 *
 * @author wfc
 **/
@Configuration
public class MyBatisPlusConfig {

    @Bean
    public MybatisPlusInterceptor mybatisPlusInterceptor() {
        MybatisPlusInterceptor mybatisPlusInterceptor = new MybatisPlusInterceptor();
        mybatisPlusInterceptor.addInnerInterceptor(new FastPaginationInnerInterceptor());
        return mybatisPlusInterceptor;
    }
}
